package com.ruoyi.walmart.domain.InventoryLog;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class InventoryLogPayload {
    private Headers headers;
    private Payload payload;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class Headers {
        private Integer totalCount;
        private Integer limit;
        private Integer offset;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class Payload {
        private String gtin;
        private String vendorSku;
        private String productName;
        private String imageUrl;
        private List<InventoryLog> inventoryLog;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class InventoryLog {
        private String fcName;//配送中心

        private String fcId;//配送中心ID

        private Long changedUnits;//变动库存

        private Date transactionTime;//交易时间

        private String transactionLocation;//交易地点

        private String transactionReasonCode;//交易原因code

        private String transactionReasonDesc;//交易原因描述

        private String transactionType;//类型

        private String shipmentId;//发货ID
    }

}






